package com.jiannan.order.service;

import com.jiannan.order.feign.StockService;
import lombok.AllArgsConstructor;
import org.springframework.stereotype.Service;

@Service
@AllArgsConstructor
public class OrderService {

    private final StockService stockService;

    public Integer getProductStock(Integer productId) {
        return stockService.selectStockByProductId(productId);
    }

}